package com.ruoyi.applyNews.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * applyNews对象 passnews
 * 
 * @author 祁正
 * @date 2023-06-05
 */
public class Passnews extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 审核ID */
    @Excel(name = "审核ID")
    private Long id;

    /** 发布者 */
    @Excel(name = "发布者")
    private String username;

    /** 新闻标题 */
    @Excel(name = "新闻标题")
    private String title;

    /** 新闻内容 */
    private String content;

    /** 新闻封面 */
    private String coverPic;

    /** 新闻类型 */
    @Excel(name = "新闻类型")
    private Long tid;

    /** 审核状态 */
    @Excel(name = "审核状态")
    private Long state;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private String sendTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setCoverPic(String coverPic) 
    {
        this.coverPic = coverPic;
    }

    public String getCoverPic() 
    {
        return coverPic;
    }
    public void setTid(Long tid) 
    {
        this.tid = tid;
    }

    public Long getTid() 
    {
        return tid;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }
    public void setSendTime(String sendTime)
    {
        this.sendTime = sendTime;
    }

    public String getSendTime()
    {
        return sendTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("username", getUsername())
            .append("title", getTitle())
            .append("content", getContent())
            .append("coverPic", getCoverPic())
            .append("tid", getTid())
            .append("state", getState())
            .append("sendTime", getSendTime())
            .toString();
    }
}
